/* wintop.h */

/********************/
/* SPCORE-TOPLEVEL  */
/* for MS-Windows   */
/* (C) 2003 by NAH6 */
/********************/

#ifndef __WINTOP_H
#define __WINTOP_H
#ifdef __cplusplus
extern "C" {
#endif

/*------------*/
/*  INCLUDES  */
/*------------*/

#include <windows.h>

/*-----------*/
/*  DEFINES  */
/*-----------*/

#define E_WINTOP_UNICODE   (-0x0001)
#define E_WINTOP_RUNNING   (-0x0002)
#define E_WINTOP_STARTUP   (-0x0003)

/*====*/

#define K_WINTOP_BGCOLOR0  (0x00FFFF00L)
#define K_WINTOP_BGCOLOR1  (0x0000FFFFL)

#define K_WINTOP_FGCOLOR0  (0x00000000L)
#define K_WINTOP_FGCOLOR1  (0x00808080L)
#define K_WINTOP_FGCOLOR2  (0x000080FFL)
#define K_WINTOP_FGCOLOR3  (0x00FF0000L)
#define K_WINTOP_FGCOLOR4  (0x000000FFL)

#define K_WINTOP_COCOLOR0  (0x000000FFL)
#define K_WINTOP_COCOLOR1  (0x0000FFFFL)
#define K_WINTOP_COCOLOR2  (0x00FF00FFL)
#define K_WINTOP_COCOLOR3  (0x00FF0000L)

#define K_WINTOP_TIMERTICK (100)
#define K_WINTOP_SHOWTIME  (50)

/*----*/

#define K_WINTOP_SOFTVERNUM   (101)
#define K_WINTOP_SOFTVERTXT   "1.01"
#define K_WINTOP_PROTVERNUM   (101)
#define K_WINTOP_PROTVERTXT   "1.01"

#define K_WINTOP_TXTLINES     (7)
#define K_WINTOP_TXTCOPYLINE  (5)
#ifndef _WIN32_WCE
#define K_WINTOP_TXTCOPYCOL   (16)
#else
#define K_WINTOP_TXTCOPYCOL   (19)
#endif
#define K_WINTOP_TXTCOPYLEN   (4)
#define K_WINTOP_TXTITEMS     (11)
#define K_WINTOP_TXTITEMNLEN  (8)
#define K_WINTOP_TXTITEMDLEN  (40)

#define K_WINTOP_PARSTATE     (0)
#define K_WINTOP_PARSUBSTATE  (1)
#define K_WINTOP_PARPHONENR   (3)
#define K_WINTOP_PARBAUDRATE  (4)
#define K_WINTOP_PARCARRIER   (5)
#define K_WINTOP_PARCODEC     (7)
#define K_WINTOP_PARCRYPTO    (8)
#define K_WINTOP_PARPIPELINK  (10)

#define K_WINTOP_EXITMSG      (0x1000)
#define K_WINTOP_UPDATEMSG    (0x1001)

/*----*/

#ifndef _WIN32_WCE  /*Win98=16 WinCE=250*/
  #define K_WINTOP_WINPRIO    (THREAD_PRIORITY_IDLE)
  #define K_WINTOP_CMDPRIO    (THREAD_PRIORITY_IDLE)
#else
  #define K_WINTOP_WINPRIO    (THREAD_PRIORITY_ABOVE_NORMAL)
  #define K_WINTOP_CMDPRIO    (THREAD_PRIORITY_ABOVE_NORMAL)
#endif

/*--------------*/
/*  PROTOTYPES  */
/*--------------*/

void wintop_exit   (void);
void wintop_notify (unsigned char item);

/*-------------*/
/*  VARIABLEN  */
/*-------------*/

extern HINSTANCE wintop_inst;
extern HWND      wintop_wnd;

#ifdef __cplusplus
}
#endif
#endif


/*** EOF ***/
